<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改仓库管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-warehouse-edit" th:object="${basWarehouse}">
<!--            <input name="warehouseId" th:field="*{warehouseId}" type="hidden">-->
            <div class="form-group">
                <label class="col-sm-3 control-label">UUID：</label>
                <div class="col-sm-8">
                    <input name="warehouseNo" th:field="*{warehouseNo}" class="form-control" type="text" readonly>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库编号：</label>
                <div class="col-sm-8">
                    <input name="warehouseId" th:field="*{warehouseId}" class="form-control" type="text" readonly>
                </div>
            </div>

<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">所属项目：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="projectNo" th:field="*{projectNo}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库名称：</label>
                <div class="col-sm-8">
                    <input name="warehouseName" th:field="*{warehouseName}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">仓库地址：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="address" th:field="*{address}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库描述：</label>
                <div class="col-sm-8">
                    <input name="cDesc" th:field="*{cDesc}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">仓库级别：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="warehouseKind" th:field="*{warehouseKind}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否使用：</label>
                <div class="col-sm-8">
                    <select name="isCurrent" class="form-control m-b" th:with="type=${@dict.getType('is_used')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isCurrent}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/warehouse";
        $("#form-warehouse-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-warehouse-edit').serialize());
            }
        }
    </script>
</body>
</html>